<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,intial-scale=1">
    <title>缩略图</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!--<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">-->
    <!--下拉菜单需要引入js-->
    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>

    <style>
        body {
            padding-bottom: 50px;
        }
    </style>
</head>
<body>
<div class="container">
    <h5 class="page-header">1.基本实例(.thumbnail)</h5>
    <div class="row">
        <div class="col-md-2">
            <a href="#" class="thumbnail">
                <img src="img/head.jpg" alt="head"/>
            </a>
        </div>
        <div class="col-md-2">
            <a href="#" class="thumbnail">
                <img src="img/head.jpg" alt="head"/>
            </a>
        </div>
        <div class="col-md-2">
            <a href="#" class="thumbnail">
                <img src="img/head.jpg" alt="head"/>
            </a>
        </div>
        <div class="col-md-2">
            <a href="#" class="thumbnail">
                <img src="img/head.jpg" alt="head"/>
            </a>
        </div>
        <div class="col-md-2">
            <a href="#" class="thumbnail">
                <img src="img/head.jpg" alt="head"/>
            </a>
        </div>
        <div class="col-md-2">
            <a href="#" class="thumbnail">
                <img src="img/head.jpg" alt="head"/>
            </a>
        </div>
    </div>

    <br>
    <br>
    <h5 class="page-header">2.自定义内容</h5>
    <!--添加一点点额外的标签，就可以把任何类型的 HTML 内容，例如标题、段落或按钮，加入缩略图组件内。-->
    <div class="row">
        <div class="col-md-3">
            <div class="thumbnail">
                <img src="img/head.jpg" alt="head"/>
                <!--添加自定义的内容-->
                <div class="caption">
                    <h3>Thumbnail Label</h3>
                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida
                        at
                        eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="thumbnail">
               <img src="img/head.jpg" alt="head" />
                <div class="caption">
                    <h3>Thumbnail Label</h3>
                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida
                        at
                        eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="thumbnail">
                <img src="img/head.jpg" alt="head" />
                <div class="caption">
                    <h3>Thumbnail Label</h3>
                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida
                        at
                        eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="thumbnail">
                <img src="img/head.jpg" alt="head" />
                <div class="caption">
                    <h3>Thumbnail Label</h3>
                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida
                        at
                        eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                    <a href="#" class="btn btn-primary" role="button">Button</a>
                </div>
            </div>
        </div>

    </div>
</div>
</body>
</html>